
cc.Class({
    extends: cc.Component,

    properties: {
        petPrefab: cc.Prefab,
    },



    onLoad() { },

    start() {

    },

    update(dt) { },

    createPet() {
        let petNode = cc.instantiate(this.petPrefab);
        petNode.parent = this.node;
        petNode.position = cc.v2(petNode.width, petNode.height);
    }

});
